<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../css/style.css" />
		<script src="../js/head_public.js"></script>
		<script src="../js/common.js"></script>
		<style>
			.yirenzheng{background:#ff7e00;border-radius: 0.5rem;border: none!important;color: #fff!important;margin-top: 0.8rem;}
		    .gengxin{font-size: 0.3rem;color: #666;margin-top: 0.8rem;display: inline-block;margin-left: 0.5rem;}
		    .xq-t{border-bottom:1px solid #eee;font-size: 0.35rem;color: #ff7e00;padding-left: 0.2rem;line-height: 0.6rem;font-weight: normal;}
		    .xqcontent{color: #666666;line-height: 25px;font-size: 14px;padding: 0px 0.2rem;}
		</style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav ding-bar" >
				 <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			    <h1 class="mui-title">居家养老</h1>
		</header>
		<div class="mui-content">
			<ul class="store-list">
	    		<li style="margin: 0;">
	    			<a data-href="">
	    				<img id="store-logo" src="../images/goods.png"/>
	    				<div class="store-con">
	    					<h1 class="only-line" id="store"></h1>
	    					<button class="yirenzheng">已认证</button>
	    					<!--<img src="../images/phone.png"  class="gm-phone-icon"/>-->
	    				</div>
	    			</a>
	    		</li>
	    	</ul>
	    	<div class="fwlx">
	    	    <p>服务类型：<span id="leixing"></span></p>
	    	    <p>服务区域：<span id="address"></span></p>
	    	    <p>商家地址：<span id="dizhi">城关区双城门金运大厦1710室</span></p>
	    	</div>
	    	<div class="kong"></div>
	    	<div style="background: #fff;">
	    		<h1 class="xq-t">服务详情</h1>
		    	<div class="xqcontent">
		    	</div>
	    	</div>
	    	<img src="../images/jj-phone.png" id="phone"style="width: 100%;position: fixed;bottom: 0px;" />
		</div>	
		<script src="../js/mui.min.js"></script>
		<script src="../js/jquery-1.8.0.min.js"></script>
		<script>
	        var data={};
	        var id= getQueryString("id");;
	        if(id!=null&&id!=""){
					var data={};
					data.id=id;
					$.post(net+"/public/index.php?s=api/shop/homeInfo",data,function(data){
		               if(data.code==200){
			               	if(data.result!=null&&data.result!=""){
			               		$("#leixing").html(data.result.home_type_name)
			               		$("#store").html(data.result.store_name)
			               		$("#address").html(data.result.home_zone_str)
			               		$("#dizhi").html(data.result.area_info+data.result.store_address)
			               		$(".xqcontent").html(data.result.store_description)
			               		$("#store-logo").attr("src",net+"public/uploads/home/store/"+data.result.store_id+"/"+data.result.store_avatar)
			               		mui(".mui-content").on("tap","#phone",function(){
			               			location.href="tel:"+data.result.store_phone;
			               		})
			               	}
		                }
				    },'json'
				    );
				}
		
		</script>
	</body>

</html>